package com.ruoyi.bussiness.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bussiness.mapper.PubBuspoolStationMapper;
import com.ruoyi.bussiness.domain.PubBuspoolStation;
import com.ruoyi.bussiness.service.IPubBuspoolStationService;
import com.ruoyi.common.core.text.Convert;

/**
 * 站务室Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-12
 */
@Service
public class PubBuspoolStationServiceImpl implements IPubBuspoolStationService 
{
    @Autowired
    private PubBuspoolStationMapper pubBuspoolStationMapper;

    /**
     * 查询站务室
     * 
     * @param id 站务室主键
     * @return 站务室
     */
    @Override
    public PubBuspoolStation selectPubBuspoolStationById(Long id)
    {
        return pubBuspoolStationMapper.selectPubBuspoolStationById(id);
    }

    /**
     * 查询站务室列表
     * 
     * @param pubBuspoolStation 站务室
     * @return 站务室
     */
    @Override
    public List<PubBuspoolStation> selectPubBuspoolStationList(PubBuspoolStation pubBuspoolStation)
    {
        return pubBuspoolStationMapper.selectPubBuspoolStationList(pubBuspoolStation);
    }

    /**
     * 新增站务室
     * 
     * @param pubBuspoolStation 站务室
     * @return 结果
     */
    @Override
    public int insertPubBuspoolStation(PubBuspoolStation pubBuspoolStation)
    {
        return pubBuspoolStationMapper.insertPubBuspoolStation(pubBuspoolStation);
    }

    /**
     * 修改站务室
     * 
     * @param pubBuspoolStation 站务室
     * @return 结果
     */
    @Override
    public int updatePubBuspoolStation(PubBuspoolStation pubBuspoolStation)
    {
        return pubBuspoolStationMapper.updatePubBuspoolStation(pubBuspoolStation);
    }

    /**
     * 批量删除站务室
     * 
     * @param ids 需要删除的站务室主键
     * @return 结果
     */
    @Override
    public int deletePubBuspoolStationByIds(String ids)
    {
        return pubBuspoolStationMapper.deletePubBuspoolStationByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除站务室信息
     * 
     * @param id 站务室主键
     * @return 结果
     */
    @Override
    public int deletePubBuspoolStationById(Long id)
    {
        return pubBuspoolStationMapper.deletePubBuspoolStationById(id);
    }
}
